package com.tjb.reggie.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author tjb
 * @version 1.0
 * @date 2022/8/24 22:31
 * MP配置
 */
@Configuration
public class MybatisPlusConfig {
    /**
     * 分页插件: 因为开始这里没有配置分页插件，所以我的分页的总数，一直是0
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
